#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MyPushButton(QWidget *parent = nullptr);
    MyPushButton(QString norMalImg, QString pressedImg = "");
    void zoomDown(void); // 向下跳
    void zoomUp(void); // 向上跳

    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

    QString m_norMalImg; //normalImg 代表正常显示的图片
    QString m_pressedImg; //pressImg 代表按下后显示的图片

signals:

};

#endif // MYPUSHBUTTON_H
